<html>
	<head>
		
	</head>
	<body>
		<h3>Agregar Propiedad</h3>
		<?php	
			$cats = array();
			$ops = array();		
			foreach($categorias as $cat){
				$idCat = $cat['Categoria']['id'];
				$nombreCat = $cat['Categoria']['nombre'];
				$cats[$idCat] = $nombreCat;
			}	
			foreach($operaciones as $op){
				$idOp = $op['Operacione']['id'];
				$nombreOp = $op['Operacione']['nombre'];
				$ops[$idOp] = $nombreOp;
			}
			
			echo $this->Form->create('Propiedade', array('action' => 'edit'));			
			echo $this->Form->input('idCat', array(
				'type' => 'select',
				'options' => $cats,				
				'label' => 'Categoria'
			));
			echo $this->Form->input('idOp', array(
				'type' => 'select',
				'options' => $ops,				
				'label' => 'Operacion'
			));				
			echo $this->Form->input('precio');
			echo $this->Form->input('direccion');
			echo $this->Form->input('dormitorios');
			echo $this->Form->input('antiguedad');
			echo $this->Form->input('descripcion');
			echo $this->Form->input('Destacada', array(
				'type' => 'select',
				'options' => array('si' => 'si', 'no' => 'no')				
			));

			echo $this->Form->end('Guardar Propiedad');			
		?>
	</body>
</html>